package com.itheima.day9;

import java.io.*;

public class zuoye4 {
    public static void main(String[] args) throws IOException {
        //用缓存区 提高效率复制
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("F:\\1.mp4"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("G:\\1.mp4"));
        byte[]bys = new byte[1024];
        int len;
        while ((len=bis.read(bys))!=-1){
            bos.write(bys,0,len);
        }
        bis.close();
        bos.close();
    }
}
